﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using ESRI.ArcGIS.Carto;
using MyEngineExercise.我的扩展.枚举;

namespace MyEngineExercise.我的扩展.自定义事件参数类
{
    /// <summary>
    /// 图层已操作时发生，如：删除、添加
    /// </summary>
    public sealed class LayerChangedEventArgs:CancelEventArgs
    {
        List<ILayer> _layers = new List<ILayer>();
        public List<ILayer> Layers { get { return _layers; } }


        LayerAction _layerAction = LayerAction.none;
        public LayerAction LayerAction { get { return _layerAction; } }


        public LayerChangedEventArgs(List<ILayer> layers, LayerAction layerAction)
        {
            _layers = layers;
            _layerAction = layerAction;
        }
    }
}
